#连接数据库文件

from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base

# engine = create_engine("mysql+pymysql://用户名:密码@host:port/db_name?charset=utf8")
Engine = create_engine("mysql+pymysql://root:123456@101.201.175.32:3306/fastapi_db?charset=utf8")

LOCSession = sessionmaker(bind=Engine)     # 构建session对象

Base = declarative_base()               # SQLORM基类,创建对象的基类


